<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="manage" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="url" value="${pageContext.request.contextPath}/delivery/page.do?${pageControl.appendParams}"/>
<c:set var="urlAll" value="${pageContext.request.contextPath}/delivery/all.do?${pageControl.appendParams}"/>
<manage:page title="配送订单查询">
    <jsp:attribute name="css">

    </jsp:attribute>
     <jsp:attribute name="script">
        <script>
            $('.ui.form').form({
                fields: {
                    inhourse: 'empty',
                    version: 'empty',
                    os: 'empty',
                    force: 'empty',
                    url: 'empty',
                    info: 'empty'
                }
            });
        </script>
</jsp:attribute>
    <jsp:body>
        <div class="ui container">
            <br>
            <div class="ui breadcrumb">
                <a class="ui blue ribbon label" href="/upgrade/list.do">版本升级管理</a>
            </div>

            <form action="${pageContext.request.contextPath}/upgrade/save_add.do" method="post"
                  id="upgradeform" class="ui form segment">
                    <div class="field">
                        <label style="">是否抢先版</label>
                        <select name="inhourse">
                            <option value="false" selected>否</option>
                            <option value="true">是</option>
                        </select>
                    </div>
                    <div class="field">
                        <label style="">版本</label>
                        <input type="text" name="version" maxlength="20"/>
                    </div>

                    <div class="field">
                        <label style="">类型</label>
                        <select name="os">
                            <option value="ios" selected>ios</option>
                            <option value="androId">androId</option>
                        </select>
                    </div>
                    <div class="field">
                        <label style="">强制升级</label>
                        <select name="force">
                            <option value="false" selected>否</option>
                            <option value="true">是</option>
                        </select>
                    </div>

                    <div class="field">
                        <label style="">url</label>
                        <input type="text" name="url" size="50"/>
                    </div>
                    <div class="field">
                        <label style="">md5</label>
                        <input type="text" name="md5" size="50"/>
                    </div>
                    <div class="field">
                        <label style="">说明</label>
                        <textarea name="info" rows="5" cols="20"></textarea>
                    </div>
                    <div class="field" style="display: block;text-align: center;margin-bottom: 60px;">
                        <sec:authorize access="hasRole('OPT_UPGRADE_SAVEADD')">
                            <input type="submit" class="ui primary button" value="提交"/>
                            <input type="reset" class="ui button" value="重置"/>
                        </sec:authorize>
                    </div>
            </form>
        </div>
    </jsp:body>
</manage:page>